package dht.entity;

import dht.IEntity;

public class DataObject implements IEntity {

	private static final long serialVersionUID = 1L;
	private String blockName;
	private byte data[];

	public String getBlockName() {
		return blockName;
	}

	public void setBlockName(String blockName) {
		this.blockName = blockName;
	}

	public byte[] getData() {
		return data;
	}

	public void setData(byte data[]) {
		this.data = data;
	}

	public int getFileSize() {
		if (data == null)
			return 0;
		return data.length;
	}

}
